Pair Generic Structure

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Stores a pair of objects within a single struct. This struct is useful to use as the T of a collection, or as the TKey or TValue of a dictionary.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
[SerializableAttribute]
public struct Pair<TFirst, TSecond> : IComparable, 
	IComparable<Pair<TFirst, TSecond>>
Visual Basic (Declaration)
<SerializableAttribute> _
Public Structure Pair(Of TFirst, TSecond) _
	Implements IComparable, IComparable(Of Pair(Of TFirst, TSecond))
Visual C++
[SerializableAttribute]
generic<typename TFirst, typename TSecond>
public value class Pair : IComparable, IComparable<Pair<TFirst, TSecond>>

Type Parameters

TFirst
TSecond

See Also